package jnpf.service;

import com.baomidou.mybatisplus.extension.service.IService;
import jnpf.base.ActionResult;
import jnpf.entity.ExternalLogin;
import jnpf.model.external.DifyAiCreateReq;
import jnpf.model.external.LoginReq;

public interface ExternalLoginService extends IService<ExternalLogin> {
    // 可添加自定义业务方法
    ExternalLogin getByUsername(String username);

    ActionResult apiLogin(LoginReq request) throws Exception;

    ActionResult createDifyAi(LoginReq request, DifyAiCreateReq difyAiCreateReq) throws Exception;

    String getTokenByPlatform(String platform) throws Exception;

}
